﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using EveruComponent.Parser.BBCode;
using System.Diagnostics;

namespace EverUTestApplication
{
    /// <summary>
    /// Interaktionslogik für MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }


        bool a = true;
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //BBCodeParser BBParser = new BBCodeParser(true); //If you wanna use the default Tags use "true" as parameter.


            //BBBlockList ActBB = BBParser.ParseToBBList("Hello [b]from [/b][i]BB[/i][u]code[/u] [url]http://www.codeplex.com[/url] [img]http://i3.codeplex.com/Images/v17950/RuntimeBinary.gif[/img]");

            //FlowDocument fd = new FlowDocument();
            //Paragraph p = new Paragraph();

            //p.Inlines.AddRange(ActBB.ToInlineList());

            //fd.Blocks.Add(p);

            //TB.Document = fd;

            if (a)
            {
                SetValue(EveruWPF.Windows.Helpers.WindowHelper.MaximizeButtonEnabledProperty, true);
                SetValue(EveruWPF.Windows.Helpers.WindowHelper.MinimizeButtonEnabledProperty, true);
                a = false;
            }
            else
            {
                SetValue(EveruWPF.Windows.Helpers.WindowHelper.MaximizeButtonEnabledProperty, false);
                SetValue(EveruWPF.Windows.Helpers.WindowHelper.MinimizeButtonEnabledProperty, false);
                a = true;
            }

        }

    }
}
